package com.helloworld.springcloud.common;

import lombok.Data;

/**
 * Copyright (C), 2020-2020, XXX 软件公司
 * FileName: CommonResult
 * Author:   sisyphus
 * Date:     2021/6/27
 * Description:
 */

@Data
public class CommonResult<T> {

    private Integer code;

    private String  messgae;

    private T       data;

    public CommonResult() {
    }

    public CommonResult(Integer code, String messgae) {
        this(code, messgae, null);
    }

    public CommonResult(Integer code, String messgae, T data) {
        this.code = code;
        this.messgae = messgae;
        this.data = data;
    }
}
